#include <iostream>
using namespace std;

class a{
	public:
		int *i;
		
		a(int m){
			i=new int;
			*i=m;
		}
		a(void){
			i=new int;
		}
		~a(){
			delete i;
		}
		
}; 

int main(void){
	a x;
	*(x.i)=10;
	cout<<x.i<<endl; 
	x.i=NULL;
	cout<<x.i;
	return;
}
